package com.yesin.elasticsearch.repository;

import com.yesin.elasticsearch.pojo.Item;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.Optional;

public interface ItemRepository extends ElasticsearchRepository<Item, Long> {
    Optional<Item> findByTitle(String s);

    Iterable<Item> findByTitleOrCategoryOrBrand(String s1, String s2, String s3);

    Iterable<Item> findByPriceBetween(double v, double v1);
}
